#ifndef _C_RESOURCE_H_
#define _C_RESOURCE_H_

#include <string>
#include "types/types.h"
#include "types/TStaticQueue.h"

using namespace std;

class CImage;
class CFileInfo;
class CView;

#define NB_MAX_LOADED_IMAGES	3

enum EResourceStatus
{
	E_STATUS_NONE = 0,
	E_STATUS_LOADING,
	E_STATUS_LOADED,
	E_STATUS_UNLOADING
};

//----------------------------------------------
class CResource
{
public:
	CResource() : m_eStatus(E_STATUS_NONE) {}

	virtual bool	load		(const xstring& /*sPath*/) { m_eStatus = E_STATUS_LOADED; return true; }
	virtual void	unload		() { m_eStatus = E_STATUS_NONE; }

protected:
	EResourceStatus	m_eStatus;
};

#endif